var t = require("../@babel/runtime/helpers/defineProperty"), e = getApp();

Component({
    data: {
        systemInfo: e.data.systemInfo,
        offlinePayStatus: 0,
        offlinePayRes: {
            bg: {
                type: "bg",
                loaded: !1,
                url: "http://newimg.ap1983.com/prod/20211111/dc5aa5492d2e436a94175d42efac6913.png"
            },
            title: {
                type: "title",
                loaded: !1,
                url: "http://newimg.ap1983.com/prod/20211111/f7160309cf0a45cda7c0aab63dc859b4.png"
            },
            w1: {
                type: "baby",
                loaded: !1,
                width: 83,
                height: 95,
                left: 460,
                bottom: 448,
                url: "http://newimg.ap1983.com/prod/20211111/f0d8a14add7b481888defbfcff88a724.png",
                delay: .6,
                float: 1
            },
            w2: {
                type: "baby",
                loaded: !1,
                width: 37,
                height: 50,
                left: 70,
                bottom: 300,
                url: "http://newimg.ap1983.com/prod/20211111/333d6470e7594f1cb339fd9a8a373774.png",
                delay: .8,
                float: 2
            },
            w3: {
                type: "baby",
                loaded: !1,
                width: 36,
                height: 66,
                left: 30,
                bottom: 180,
                url: "http://newimg.ap1983.com/prod/20211111/207e4f8ff7e5434ab427fb908026b689.png",
                delay: .7,
                float: 3
            },
            w4: {
                type: "baby",
                loaded: !1,
                width: 73,
                height: 118,
                left: 90,
                bottom: 120,
                url: "http://newimg.ap1983.com/prod/20211111/ecb3c6b4e4a74648b89dc965fee95fff.png",
                delay: .7,
                float: 4
            },
            w5: {
                type: "baby",
                loaded: !1,
                width: 59,
                height: 86,
                left: 640,
                bottom: 310,
                url: "http://newimg.ap1983.com/prod/20211111/f60d3893d6224cc98df0d3f8789fb7c7.png",
                delay: .8,
                float: 5
            },
            w6: {
                type: "baby",
                loaded: !1,
                width: 42,
                height: 55,
                left: 620,
                bottom: 200,
                url: "http://newimg.ap1983.com/prod/20211111/04ff8ef8744c473085ad94dfe2f842a5.png",
                delay: .9,
                float: 6
            },
            w7: {
                type: "baby",
                loaded: !1,
                width: 57,
                height: 84,
                left: 675,
                bottom: 180,
                url: "http://newimg.ap1983.com/prod/20211111/e9fe079555134f65b87d912b1bf8df5d.png",
                delay: .7,
                float: 7
            },
            w8: {
                type: "baby",
                loaded: !1,
                width: 66,
                height: 94,
                left: 630,
                bottom: 80,
                url: "http://newimg.ap1983.com/prod/20211111/ef1ddc3c56424b8fb715dd4c734d4091.png",
                delay: .5,
                float: 8
            }
        },
        selected: null,
        tabList: [ {
            iconPath: "/custom-tab-bar/images/index.png",
            selectedIconPath: "/custom-tab-bar/images/index-selected.png",
            pagePath: "/pages/index/index",
            text: "抽盒"
        }, {
            iconPath: "/custom-tab-bar/images/direct-buy.png",
            selectedIconPath: "/custom-tab-bar/images/direct-buy-selected.png",
            pagePath: "/pages/direct-buy/direct-buy",
            text: "直购"
        }, {
            iconPath: "/custom-tab-bar/images/vip-center.png",
            selectedIconPath: "/custom-tab-bar/images/vip-center-selected.png",
            pagePath: "/pages/vip-center/vip-center",
            text: "会员活动"
        }, {
            iconPath: "/custom-tab-bar/images/task.png",
            selectedIconPath: "/custom-tab-bar/images/task-selected.png",
            pagePath: "/pages/task/task",
            text: "任务"
        }, {
            iconPath: "/custom-tab-bar/images/my.png",
            selectedIconPath: "/custom-tab-bar/images/my-selected.png",
            pagePath: "/pages/my/my",
            text: "我的"
        } ]
    },
    lifetimes: {
        attached: function() {}
    },
    methods: {
        switchTab: function(t) {
            var e = t.currentTarget.dataset.index;
            wx.switchTab({
                url: this.data.tabList[e].pagePath
            });
        },
        showOfflinePaySuccess: function(t) {
            var e = [];
            for (var a in this.data.offlinePayRes) e.push({
                key: a,
                url: this.data.offlinePayRes[a].url
            });
            this.setData({
                offlinePayStatus: t,
                offlinePayResList: e
            });
        },
        offlinePayResImageOnLoaded: function(e) {
            var a = e.currentTarget.dataset.key;
            this.setData(t({}, "offlinePayRes." + a + ".loaded", !0));
        },
        offlinePayResOnTap: function() {
            this.setData({
                offlinePayStatus: 0
            });
        }
    }
});